package com.ruoyi.jiaofu.service;

import com.ruoyi.jiaofu.domain.DdtJiaofuTopicGoods;
import com.ruoyi.jiaofu.mapper.DdtJiaofuTopicGoodsMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 年度书单Service业务层处理
 *
 * @author ruoyi
 * @date 2024-05-26
 */
@Service
@RequiredArgsConstructor
public class DdtJiaofuTopicGoodsService {
    private final DdtJiaofuTopicGoodsMapper ddtJiaofuTopicGoodsMapper;

    /**
     * 查询年度书单
     *
     * @param id 年度书单主键
     * @return 年度书单
     */
    public DdtJiaofuTopicGoods selectDdtJiaofuTopicGoodsById(Long id) {
        return ddtJiaofuTopicGoodsMapper.selectDdtJiaofuTopicGoodsById(id);
    }

    /**
     * 查询年度书单列表
     *
     * @param ddtJiaofuTopicGoods 年度书单
     * @return 年度书单
     */
    public List<DdtJiaofuTopicGoods> selectDdtJiaofuTopicGoodsList(DdtJiaofuTopicGoods ddtJiaofuTopicGoods) {
        return ddtJiaofuTopicGoodsMapper.selectDdtJiaofuTopicGoodsList(ddtJiaofuTopicGoods);
    }
}
